package com.itheima.infoManager.arraylistDemo.manager.entry;

import com.itheima.infoManager.arraylistDemo.manager.controller.OtherStudentController;
import com.itheima.infoManager.arraylistDemo.manager.controller.TeacherController;

import java.util.Scanner;

public class InfoManagerEntry {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        while (true) {
            System.out.println("--------欢迎来到黑马信息管理系统--------");
            System.out.println("请输入您的选择: 1.学生管理  2.老师管理  3.退出");
            switch (sc.nextInt()) {
                case 1:
                    //学生
                    //StudentController controller = new StudentController();
                    OtherStudentController controller = new OtherStudentController();
                    controller.start();
                    break;
                case 2:
                    //老师
                    TeacherController teacherController = new TeacherController();
                    teacherController.strart();
                    break;
                case 3:
                    //退出
                    System.out.println("感谢使用！");
                    System.exit(0);
                default:
                    System.out.println("输入错误，请重新输入");
                    break;
            }
        }
    }
}
